package com.by.bean;


import com.by.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("产品")
public class Product {
    @NotNull(message = "修改时id不能为空！", groups = {IUpdate.class})
    private int id;
    private String code;
    @ApiModelProperty("产品名称")
    private String name;
    private int type;
    private String unit;
    private String picurl;
    private String categoryPath;
    private String categoryName;
    private String spec;
    private String specBarCode;
    private String specCode;
    private int brandId;
    private String brandName;
    private int materialId;
    private String materialName;
    private double weight;
    private int size;
    private String productNumber;
    private String factoryNumber;
    private String originalNumber;
    private int inventory;
    private double price;
    private int sorts;
    private int min;
    private int max;
    private String brandDetail;
    private String detail;

    @ApiModelProperty("创建人名称")
    private String createUser;
    @ApiModelProperty("创建人编码")
    private String userCode;
    @ApiModelProperty(value = "添加轮播图", required = true)
    List<String> banner;

}
